//
//  ViewController3.swift
//  SwiftCountdownButtonDemo
//
//  Created by 郑东喜 on 2016/11/27.
//  Copyright © 2016年 Gesen. All rights reserved.
//

import UIKit

class ViewController3: UIViewController,sendBtnDelegate {

    var getCodeBtn = zz()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // Do any additional setup after loading the view.
        getCodeBtn.backgroundColor = UIColor.red
        getCodeBtn.initwith(frame: CGRect(x: 0, y: 0, width: 100, height: 100), color: UIColor.blue, title: "ddd", superView: view, delegate: self)
        

        view.addSubview(getCodeBtn)
        
    }
    

}


extension ViewController3 {
    func whenSendBtnClicked(button: zz) {
        print("ddd")
        
        print(button.currentTitle as Any)
        
        
    }
}
